15 Count Items in [13 slugs] »
16 If [15 Count] > 1
17 Choose from List [13 slugs]
ChooseFromListActionPrompt
: 🤖 Which one?
18 Otherwise
19 Get Text from [13 slugs]
20 End If » 21 27
21 URL [7 baseURL] /work/quotes/[20 If Result] » 22 45
22 Open URL [21 URL]
23 Repeat with Each in [13 slugs]
24 Set Dictionary Value for [Repeat Item] to [Repeat Index] in [dict] »
25 Set Variable dict to [24 Dictionary]
26 End Repeat with Each
27 Get Dictionary Value for [20 If Result] in [dict] ➔ idx » 30
28 Match Text <a class="bookTitle" itemprop="url" href="(.*?)" in [11 HTML from Rich Text] »
29 Get Match Group At Index 1 in [28 Matches] »
30 Get Item At Index [27 idx] from List [29 Text] »
31 Get Contents of URL [7 baseURL] [30 Item from List] »
32 Make HTML from Rich Text [31 Contents of URL] »
33 Match Text <script type="application/ld\+json">(.*?)</script> in [32 HTML from Rich Text] »
34 Get Match Group At Index 1 in [33 Matches] »
35 Get Dictionary from [34 Text] » 36 37 43
36 Get Dictionary Value for author.1.name in [35 Dictionary] ➔ author » 40 46
37 Get Dictionary Value for name in [35 Dictionary] ➔ title »
38 Split Text [37 title] by Custom »
39 Get First Item from List [38 Split Text] ➔ title » 40 46
40 Text »
41 Make Rich Text from HTML [40 Text] »
42 Run Shortcut 📥 Add to Inbox
Input
: [41 Rich Text from HTML]
Workflow
: { "workflowIdentifier": "BD94B8A5-33FB-409C-BF55-0BD26765BC95",
"workflowName": "📥 Add to Inbox",
"isSelf": false
}
43 Get Dictionary Value for isbn in [35 Dictionary] ➔ isbn »
44 Copy [43 isbn] to Clipboard
45 Copy [21 URL] to Clipboard
46 Text »
Summarize the book <[39 title] > by [36 author] , and give me a list of the most important insights, takeaways, and actionable tips/advice from this book.
47 Dictionary »
{ "content": "[46 Text] " }
48 Run Shortcut ChatGPT
Workflow
: { "workflowIdentifier": "ECDBC6E3-6ECC-4F80-88FE-C6F637DEFA19",
"workflowName": "ChatGPT",
"isSelf": false
}